//
//  HZMSqlTool.h
//  糖糖大魔王
//
//  Created by 韩震明 on 15/11/8.
//  Copyright © 2015年 韩震明. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <FMDB.h>
#import "HZMCollectionModel.h"

@interface HZMSqlTool : NSObject

@property (nonatomic,strong)FMDatabase *db;
+ (HZMSqlTool *)sharedInstance;
- (void)creatTable:(NSString*)tableName; //创建表
- (void)insertData:(NSMutableDictionary *)dbModel intoTable:(NSString *)tableName; //插入数据
- (void)deleteData:(NSMutableDictionary *)dbModel fromTable:(NSString *)tableName; //删除单个数据
- (NSMutableDictionary *)queryDataFromTable:(NSString *)tableName;//获取表tableName中所有的数据

@end
